﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/themes/myTheme/css/basic.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/myTheme/css/widget.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
        <script type="text/javascript" src="@Url.Content("~/Content/themes/myTheme/Scripts/jquery.js")" > </script>
    <script type='text/javascript' src="@Url.Content("~/Content/themes/myTheme/Scripts/jquery.simplemodal.js")"> </script>
    <script type='text/javascript' src="@Url.Content("~/Content/themes/myTheme/Scripts/basic.js")"> </script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>
                    My MVC Application</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
            <script type="text/javascript" src="@Url.Content("~/Content/themes/myTheme/Scripts/GetResources.js")">
         </script>
        <div id="container">
            <div id="content">
                <div id="basic-modal">
                    <input type="button" name="basic" id="btnGet" value="Widget!" class="basic" />
                </div>
            </div>
        </div>
            <h2 id="Header">
                Dynamically loading JavaScript files</h2>
            <input type="button" value="Подгрузить Javascript" id="buttonJS" />
            <script type="text/javascript">
                $(function () {
                    $('#buttonJS').click(function () {
                        $.ajax({
                            type: "GET",
                            url: "../../Content/themes/myTheme/Scripts/libraryJQuery.js",
                            dataType: "script"
                        });
                    });
                });
            </script>
            <div id="log-container">
            </div>
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
